From 98ee5b6406187d9a6e5496296165d40661c8c491 Mon Sep 17 00:00:00 2001 From: "kfraser@localhost.localdomain" Date: Fri, 13 Jul 2007 13:43:29 +0100 Subject: [PATCH] [Xend] Fix problem when destroying VMs using the Xen-API When domains are destroyed/suspend-resume/migration using the Xen-API things break due to the domid not having been reset. This patch fixes this. This is the best place I found for fixing this problem. I could not push this line into _stateSet() for the case of DOM_STATE_HALTED and left a comment regarding this. Signed-off-by: Stefan Berger --- tools/python/xen/xend/XendDomainInfo.py | 1 + 1 file changed, 1 insertion(+) diff --git a/tools/python/xen/xend/XendDomainInfo.py b/tools/python/xen/xend/XendDomainInfo.py index 51bd978f3d..a69211d32b 100644 --- a/tools/python/xen/xend/XendDomainInfo.py +++ b/tools/python/xen/xend/XendDomainInfo.py @@ -1594,6 +1594,7 @@ class XendDomainInfo: log.exception("Removing domain path failed.") self._stateSet(DOM_STATE_HALTED) + self.domid = None # Do not push into _stateSet()! finally: self.refresh_shutdown_lock.release() -- 2.30.2